package com.tamtamy.jtta.data.json;

import net.sf.json.JSONObject;

import com.tamtamy.jtta.data.User;
import com.tamtamy.jtta.utility.JSONUtility;

public class JSONUser extends User{
	
	public JSONUser(JSONObject jsonObject) {	
		this.userID = JSONUtility.getString(jsonObject, "userID");
		this.nickname = JSONUtility.getString(jsonObject, "nickname");
		this.firstName = JSONUtility.getString(jsonObject, "firstName");
		this.lastName = JSONUtility.getString(jsonObject, "lastName");
		this.birthday = JSONUtility.getString(jsonObject, "birthday");
		this.gender = JSONUtility.getString(jsonObject, "gender");		
		this.mail = JSONUtility.getString(jsonObject, "mail");
		this.blog = JSONUtility.getString(jsonObject, "blog");
		this.interest = JSONUtility.getString(jsonObject, "interest");
		this.avatarFilename = JSONUtility.getString(jsonObject, "avatarFilename");
		this.online = JSONUtility.getBoolean(jsonObject, "onLine");
	}


}
